import datetime
from pydantic import BaseModel, Field

from schema.resp_schema.base_schema import BaseRespModel


class UserInfoModel(BaseModel):
    user_id: int
    username: str = Field(None)
    alias: str = Field(None)
    first_name: str = Field(None)
    last_name: str = Field(None)
    email: str = Field(None)
    last_login: datetime.datetime = Field(None)
    avatar: str = Field(None)


class CurrentUserInfoResponseModel(BaseRespModel):
    data: UserInfoModel